stubdom: fix build with disabled pv-grub
authorJuergen Gross <jgross@suse.com>
Fri, 10 Sep 2021 05:55:16 +0000 (07:55 +0200)
committerIan Jackson <iwj@xenproject.org>
Fri, 15 Oct 2021 10:06:06 +0000 (11:06 +0100)
commit1223c4c0c439faa240f031b3dff2b1667547f830
tree81380b079e4eaccc11587e812efc5a3e5f059804
parentb75838ad6c4f42c93efee83fc2508c78641e1b57
stubdom: fix build with disabled pv-grub

Today the build will fail if --disable-pv-grub as a parameter of
configure, as the main Makefile will unconditionally try to build a
32-bit pv-grub stubdom.

Fix that by introducing a pv-grub-if-enabled target in
stubdom/Makefile taking care of this situation.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Makefile
stubdom/Makefile